home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpinstall / nsPIXPIProxy.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  7KB  |  172 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsPIXPIProxy.idl
  3.  */
  4.  
  5. #ifndef __gen_nsPIXPIProxy_h__
  6. #define __gen_nsPIXPIProxy_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsPIXPIProxy */
  19. #define NS_PIXPIPROXY_IID_STR "6f9d2890-167d-11d5-8daf-000064657374"
  20.  
  21. #define NS_PIXPIPROXY_IID \
  22.   {0x6f9d2890, 0x167d, 0x11d5, \
  23.     { 0x8d, 0xaf, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}
  24.  
  25. /**
  26.  * nsPIXPIProxy
  27.  *
  28.  * Used to handle miscellaneous things that XPInstall needs to perform
  29.  * over on the main UI thread.
  30.  */
  31. class NS_NO_VTABLE nsPIXPIProxy : public nsISupports {
  32.  public: 
  33.  
  34.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_PIXPIPROXY_IID)
  35.  
  36.   /* void refreshPlugins (in boolean reloadPages); */
  37.   NS_IMETHOD RefreshPlugins(PRBool reloadPages) = 0;
  38.  
  39.   /* void notifyRestartNeeded (); */
  40.   NS_IMETHOD NotifyRestartNeeded(void) = 0;
  41.  
  42.   /**
  43.     * Puts up an alert dialog with an OK button.
  44.     *
  45.     * @param title
  46.     *        Text to appear in the title of the dialog.
  47.     * @param text
  48.     *        Text to appear in the body of the dialog.
  49.     */
  50.   /* void alert (in wstring title, in wstring text); */
  51.   NS_IMETHOD Alert(const PRUnichar *title, const PRUnichar *text) = 0;
  52.  
  53.   /**
  54.      * Puts up a dialog with up to 3 buttons and an optional, labeled checkbox.
  55.      *
  56.      * @param aDialogTitle
  57.      *        Text to appear in the title of the dialog.
  58.      * @param aText
  59.      *        Text to appear in the body of the dialog.
  60.      * @param aButtonFlags
  61.      *        A combination of Button Flags.
  62.      * @param aButton0Title
  63.      *        Used when button 0 uses TITLE_IS_STRING
  64.      * @param aButton1Title
  65.      *        Used when button 1 uses TITLE_IS_STRING
  66.      * @param aButton2Title
  67.      *        Used when button 2 uses TITLE_IS_STRING
  68.      * @param aCheckMsg
  69.      *        Text to appear with the checkbox.  Null if no checkbox.
  70.      * @param aCheckState    
  71.      *        Contains the initial checked state of the checkbox when this method
  72.      *        is called and the final checked state after this method returns.
  73.      *
  74.      * @return index of the button pressed.
  75.      *
  76.      * Buttons are numbered 0 - 2. The implementation can decide whether the
  77.      * sequence goes from right to left or left to right.  Button 0 is the
  78.      * default button unless one of the Button Default Flags is specified.
  79.      *
  80.      * The value for aButtonFlags is constructed using the constants defined by
  81.      * nsIPromptService.
  82.      *
  83.      * @see nsIPromptService
  84.      */
  85.   /* PRInt32 confirmEx (in wstring aDialogTitle, in wstring aText, in unsigned long aButtonFlags, in wstring aButton0Title, in wstring aButton1Title, in wstring aButton2Title, in wstring aCheckMsg, inout boolean aCheckState); */
  86.   NS_IMETHOD ConfirmEx(const PRUnichar *aDialogTitle, const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title, const PRUnichar *aButton1Title, const PRUnichar *aButton2Title, const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval) = 0;
  87.  
  88. };
  89.  
  90. /* Use this macro when declaring classes that implement this interface. */
  91. #define NS_DECL_NSPIXPIPROXY \
  92.   NS_IMETHOD RefreshPlugins(PRBool reloadPages); \
  93.   NS_IMETHOD NotifyRestartNeeded(void); \
  94.   NS_IMETHOD Alert(const PRUnichar *title, const PRUnichar *text); \
  95.   NS_IMETHOD ConfirmEx(const PRUnichar *aDialogTitle, const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title, const PRUnichar *aButton1Title, const PRUnichar *aButton2Title, const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval); 
  96.  
  97. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  98. #define NS_FORWARD_NSPIXPIPROXY(_to) \
  99.   NS_IMETHOD RefreshPlugins(PRBool reloadPages) { return _to RefreshPlugins(reloadPages); } \
  100.   NS_IMETHOD NotifyRestartNeeded(void) { return _to NotifyRestartNeeded(); } \
  101.   NS_IMETHOD Alert(const PRUnichar *title, const PRUnichar *text) { return _to Alert(title, text); } \
  102.   NS_IMETHOD ConfirmEx(const PRUnichar *aDialogTitle, const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title, const PRUnichar *aButton1Title, const PRUnichar *aButton2Title, const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval) { return _to ConfirmEx(aDialogTitle, aText, aButtonFlags, aButton0Title, aButton1Title, aButton2Title, aCheckMsg, aCheckState, _retval); } 
  103.  
  104. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  105. #define NS_FORWARD_SAFE_NSPIXPIPROXY(_to) \
  106.   NS_IMETHOD RefreshPlugins(PRBool reloadPages) { return !_to ? NS_ERROR_NULL_POINTER : _to->RefreshPlugins(reloadPages); } \
  107.   NS_IMETHOD NotifyRestartNeeded(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyRestartNeeded(); } \
  108.   NS_IMETHOD Alert(const PRUnichar *title, const PRUnichar *text) { return !_to ? NS_ERROR_NULL_POINTER : _to->Alert(title, text); } \
  109.   NS_IMETHOD ConfirmEx(const PRUnichar *aDialogTitle, const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title, const PRUnichar *aButton1Title, const PRUnichar *aButton2Title, const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmEx(aDialogTitle, aText, aButtonFlags, aButton0Title, aButton1Title, aButton2Title, aCheckMsg, aCheckState, _retval); } 
  110.  
  111. #if 0
  112. /* Use the code below as a template for the implementation class for this interface. */
  113.  
  114. /* Header file */
  115. class _MYCLASS_ : public nsPIXPIProxy
  116. {
  117. public:
  118.   NS_DECL_ISUPPORTS
  119.   NS_DECL_NSPIXPIPROXY
  120.  
  121.   _MYCLASS_();
  122.  
  123. private:
  124.   ~_MYCLASS_();
  125.  
  126. protected:
  127.   /* additional members */
  128. };
  129.  
  130. /* Implementation file */
  131. NS_IMPL_ISUPPORTS1(_MYCLASS_, nsPIXPIProxy)
  132.  
  133. _MYCLASS_::_MYCLASS_()
  134. {
  135.   /* member initializers and constructor code */
  136. }
  137.  
  138. _MYCLASS_::~_MYCLASS_()
  139. {
  140.   /* destructor code */
  141. }
  142.  
  143. /* void refreshPlugins (in boolean reloadPages); */
  144. NS_IMETHODIMP _MYCLASS_::RefreshPlugins(PRBool reloadPages)
  145. {
  146.     return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148.  
  149. /* void notifyRestartNeeded (); */
  150. NS_IMETHODIMP _MYCLASS_::NotifyRestartNeeded()
  151. {
  152.     return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154.  
  155. /* void alert (in wstring title, in wstring text); */
  156. NS_IMETHODIMP _MYCLASS_::Alert(const PRUnichar *title, const PRUnichar *text)
  157. {
  158.     return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160.  
  161. /* PRInt32 confirmEx (in wstring aDialogTitle, in wstring aText, in unsigned long aButtonFlags, in wstring aButton0Title, in wstring aButton1Title, in wstring aButton2Title, in wstring aCheckMsg, inout boolean aCheckState); */
  162. NS_IMETHODIMP _MYCLASS_::ConfirmEx(const PRUnichar *aDialogTitle, const PRUnichar *aText, PRUint32 aButtonFlags, const PRUnichar *aButton0Title, const PRUnichar *aButton1Title, const PRUnichar *aButton2Title, const PRUnichar *aCheckMsg, PRBool *aCheckState, PRInt32 *_retval)
  163. {
  164.     return NS_ERROR_NOT_IMPLEMENTED;
  165. }
  166.  
  167. /* End of implementation class template. */
  168. #endif
  169.  
  170.  
  171. #endif /* __gen_nsPIXPIProxy_h__ */
  172.